package com.chenfan.mcn.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.DocKocpmHeader;
import com.chenfan.mcn.model.dto.KocProjectSearchDto;
import com.chenfan.mcn.model.vo.KocProjectSearchVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 项目管理 Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2022-05-21
 */
public interface DocKocpmHeaderMapper extends EnhancedBaseMapper<DocKocpmHeader> {

    /**
     * 项目管理查询关联信息
     * @param kocProjectSearchDto
     * @param kocProjectSearchDto
     * @return
     */
    List<KocProjectSearchVO> selectByStarBasicDataPm(@Param("dto") KocProjectSearchDto kocProjectSearchDto);

    /**
     * 月度红人结算查询
     * @param mcnPage
     * @param kocProjectSearchDto
     * @return
     */
    Page<KocProjectSearchVO> selectByStarBasicDataMonthly(Page<KocProjectSearchVO> mcnPage, @Param("dto") KocProjectSearchDto kocProjectSearchDto);
}
